# Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Null version of the logging lock
add_library(pw_sys_io_cmsis_driver_null_lock STATIC
    null_lock.c
)

if(TARGET cmsis-rtos-api)
    # CMSIS RTOS version of the logging lock
    add_library(pw_sys_io_cmsis_driver_rtos_lock STATIC
        cmsis_rtos_lock.c
    )

    target_link_libraries(pw_sys_io_cmsis_driver_rtos_lock
        PRIVATE
            cmsis-rtos-api
    )
endif()
